package pres.liko.iot.user.service;

import pres.liko.iot.bean.R;
import pres.liko.iot.user.pojo.Dc3User;
import pres.liko.iot.user.pojo.UserToken;
import reactor.core.publisher.Mono;

/**
 * @ClassName: UserService
 * @Auther: liko
 * @Description:
 * @Date: 2022/11/3 20:11
 */

public interface UserService {

    /**
     * 添加用户
     *
     * @param dc3UserMono
     * @return
     */
    Mono<R<Object>> addUser(Mono<Dc3User> dc3UserMono);

    /**
     * 按照姓名查询
     *
     * @param name
     * @param password
     * @return
     */
    Mono<R<UserToken>> selByName(String name, String password);

    /**
     * 登录业务，根据正则跳转响应查询
     *
     * @param phone
     * @param password
     * @return
     */
    Mono<R<Object>> Login(String phone, String password);
}
